Skip to content

Conversation

@Malusnow
Copy link

This PR allows users to specify a custom hex code for the accent color, resolving issue #411.

Changes

  • Added custom to the catppuccin.accentColor enum in package.json.
  • Introduced a new catppuccin.customAccentColors configuration object to accept hex codes for all or per-flavor (latte, mocha, etc.).
  • Updated TypeScript types to support the new configuration.
  • Implemented the logic in compileTheme to use the custom color when accentColor is set to custom.

Testing

  • Verified that existing accent colors work as before.
  • Tested setting a custom color via customAccentColors.all.
  • Tested setting different custom colors for mocha and latte and confirmed they apply correctly when switching themes.

Fixes #411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support custom accent colour from the user & the full palette

1 participant